import _fetch from "api_liuhaojie/fetch";
/**
 * 删除商品
 * @param { Object } data 请求参数
 * {
 *   id undefined
 * }
 */
export function deleteChannelGoods(data) {
  return _fetch({
    url: "backend/channel/deleteChannelGoods",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 查询渠道绑定商品列表
 * @param { Object } data 请求参数
 * {
 *   isOnSale undefined
 *   channel undefined
 *   total undefined
 *   queryStartTime undefined
 *   pageSize undefined
 *   page undefined
 *   queryEndTime undefined
 * }
 */
export function queryChannelGoodsList(data) {
  return _fetch({
    url: "backend/channel/queryChannelGoodsList",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 添加商品
 * @param { Object } data 请求参数
 * {
 *   creator undefined
 *   gmtModified undefined
 *   goodsId undefined
 *   modifier undefined
 *   channel undefined
 *   gmtCreate undefined
 *   requestParm undefined
 *   isDeleted undefined
 *   price undefined
 *   stockNum undefined
 *   id undefined
 *   isOnSale undefined
 *   goodsName undefined
 *   skuId undefined
 * }
 */
export function saveChannelGoods(data) {
  return _fetch({
    url: "backend/channel/saveChannelGoods",
    method: "POST",
    data: data,
    headers: {}
  });
}